<div class="modal hide fade" id="myModal">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">×</button>
        <?php echo "<h3>{$wizard["wizard"]->strTitle}</h3>" ?>
    </div>
    <div class="modal-body">
        <div class="tabbable tabs-left">
            <ul class="nav nav-tabs">
                <li class="active"><a href='#home' data-toggle='tab'>Start</a></li>
                <?php
                    $i = 0;
                    foreach($questions as $question){
                        echo    "<li><a href='#" . $question["idQuestion"] . "' data-toggle='tab'>Question " . ++$i . "</a></li>";
                    }
                ?>
            </ul>
            <div class="tab-content">
                <?php
                    echo    "<div class='tab-pane fade active in' id='home'>{$wizard["wizard"]->strDesc}</div>";
                    foreach($questions as $question){
                        echo    "<div class='tab-pane fade' id='" . $question["idQuestion"] . "'>
                                    <h4>{$question['strQuestion']}</h4></br>";
                        echo    "<form class='well'>";
                        foreach($question["answers"] as $answer){
                            if($question['id_question_type'] == 3/*Unique*/){
                                echo    "<label class='checkbox'><input type='radio' name='radioButton" . $question["idQuestion"] . "'> {$answer['strAnswer']}</label>";
                            } else {
                                echo    "<label class='checkbox'><input type='checkbox'> {$answer['strAnswer']}</label>";
                            }

                        }
                        echo    "</form>
                            <h6>type: {$question['question_type']}</h6>
                        </div>";
                    }
                ?>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <a href="#" class="btn" data-dismiss="modal"><i class="icon-remove"></i> Close</a>
        <a href="#" class="btn btn-success"><i class="icon-ok-sign icon-white"></i> Finish Test</a>
    </div>
</div>